namespace dict{
    const {get, getList, save} = require('@/service/sys/dictService')

    class DictController{
        async get(ctx: any){
            const query = ctx.request.body
            const listInfo = await get(query)
            ctx.body = listInfo
        }
    
        async getList(ctx:any) {
            const query = ctx.request.body
            const listInfo = await getList(query)
            ctx.body = listInfo
        }
    
        async save(ctx: any){
            const query = ctx.request.body
            const listInfo = await save(query)
            ctx.body = listInfo
        }
    }
    
    module.exports = new DictController()
}
